<template>
  <div style="border: 1px solid blue">
    <h1>aaa页面显示的内容</h1>
  </div>
</template>

<script>
//导出单文件组件
export default {
  created() {
    console.log(this);
    console.log(this.$route);
    console.log(this.$route.params);
    console.log(this.$route.params.id);
    console.log(this.$route.params.name);
  },
};
</script>

<style>
h1 {
  color: red;
}
</style>